from app.models.song import Song
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
import os

class AllSongsPage(webapp.RequestHandler):
    def get(self):
        songs = Song.all()
        template_values = {
            'songs': songs,
        }
        
        path = os.path.join(os.path.dirname(__file__), '../../views/song/all_song.html')
        
        self.response.out.write(template.render(path, template_values))
        